<template>
  <div class="mid box">
    <div class="buttons">
      <el-button type="primary" size="large" @click="activityFlag = false"
        >活动类型管理</el-button
      >
      <el-button type="primary" size="large" @click="activityFlag = true"
        >活动管理</el-button
      >
    </div>
  </div>
  <div class="activity-container box">
    <ActivityManagement v-if="activityFlag"></ActivityManagement>
    <CategoryManagement v-if="!activityFlag"></CategoryManagement>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import ActivityManagement from './ActivityManagement'
import CategoryManagement from './CategoryManagement'
const activityFlag = ref(true)
</script>

<style lang="scss" scoped>
.activity-container {
  height: 30rem;
}
</style>
